package com.ruicar.afs.cloud.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.product.condition.ProductDiscountSubsidyCondition;
import com.ruicar.afs.cloud.product.entity.ProductDiscountSubsidy;
import com.ruicar.afs.cloud.product.vo.ExtrasInfoVo;
import com.ruicar.afs.cloud.product.vo.ProductDiscountSubsidyVo;

import java.util.List;

/**
 * @author xudongdong
 * @date 2020-05-16
 */
public interface ProductDiscountConfigService extends IService<ProductDiscountSubsidy> {

    List<ExtrasInfoVo> getSelectDiscountRuleData();

    IPage<List<ProductDiscountSubsidyVo>> getDiscountConfigData(Page page, ProductDiscountSubsidyCondition config);

    void copyPlan(Long oldPlanID, Long newPlanID);
}
